<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/**  
* Class used to WebService
* @author Edio Hanoway Kepke <edio@aquiris.com>
* @version 1.0 
* @access public
*/

class Sample extends CI_Controller 
{    
    /**
    * default method
    */
    public function index()
    {
        redirect(base_url());
    }
           
    public function method()
    {        
        $data = array(
                        "param_one" => "value_one",
                        "param_two" => "value_two"
                     );
        
        $hash = '';
        
        foreach ($data as $value)
        {
            $hash = $hash.$value;
        }

        $hash = md5($hash.Fum::getKey());
        
        $data["hash"] = $hash;
                                    
        $url = site_url("class/method/");
                    
        $retunr = HelpPost::getFormTest($url, $data, 'POST');       
        
        echo $retunr.'<br>';
    }                
}